class AddColumnsToMoviePic < ActiveRecord::Migration
  def self.up
    add_column :movie_pics, :size,         :integer  # file size in bytes
    add_column :movie_pics, :content_type, :string   # mime type, ex: application/mp3
    add_column :movie_pics, :filename,     :string   # sanitized filename
    add_column :movie_pics, :height,       :integer  # in pixels
    add_column :movie_pics, :width,        :integer  # in pixels reference images that will be thumbnailed:
    add_column :movie_pics, :parent_id,    :integer  # id of parent image (on the same table, a self-referencing foreign-key).                          # Only populated if the current object is a thumbnail.
    add_column :movie_pics, :thumbnail,    :string   # the 'type' of thumbnail this attachment record describes.
    add_column :movie_pics, :created_at,   :datetime
    add_column :movie_pics, :updated_at,   :datetime
    add_column :movie_pics, :movie_id,     :integer
  end

  def self.down
  end
end
